package bancosys.tec.persist.entities.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import jmine.tec.persist.annotation.Alias;
import bancosys.tec.persist.bussobj.PersistableBusinessObject;
import bancosys.tec.persist.persister.annotation.SystemId;

/**
 * Entity used on SystemEntityTest
 * 
 * @author lundberg
 */
@SuppressWarnings("serial")
@Entity
@Alias("MKSYEN")
public class MockSystemEntity extends PersistableBusinessObject {

    private Long id;

    private String nome;

    private String system;

    /**
     * Construtor.
     */
    public MockSystemEntity() {
        // constructor
    }

    /**
     * Construtor.
     * 
     * @param nome nome
     * @param system system
     */
    public MockSystemEntity(String nome, String system) {
        this.nome = nome;
        this.system = system;
    }

    /**
     * @return the id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return this.id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @param nome the nome to set
     */
    public void setNome(String nome) {
        this.nome = nome;
    }

    /**
     * @return the nome
     */
    @Column
    public String getNome() {
        return this.nome;
    }

    /**
     * @return the system
     */
    @Column
    @SystemId
    public String getSystem() {
        return this.system;
    }

    /**
     * @param system the system to set
     */
    public void setSystem(String system) {
        this.system = system;
    }
}
